package com.yumijinfu.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.yumijinfu.R;
import com.yumijinfu.base.SpulshBaseFragment;
import com.yumijinfu.mian.MainActivity;
import com.yumijinfu.tool.playHeartbeatAnimation;


public class SplashThreeFragment extends SpulshBaseFragment {

    View view;
    private static final float ZOOM_MAX = 1.3f;
    private static final  float ZOOM_MIN = 1.0f;

    private ImageView imgView_immediate_experience;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_splash_three, container, false);

        imgView_immediate_experience= (ImageView) view.findViewById(R.id.imgView_immediate_experience);
        return view;
    }

    @Override
    protected void initTitle() {

    }

    @Override
    protected void initView() {

        imgView_immediate_experience.setOnClickListener(this);
    }

    @Override
    protected void setData() {

    }

    @Override
    protected void widgetClick(View view) {

        switch (view.getId()){

            case R.id.imgView_immediate_experience:

                Intent intent=new Intent(getActivity(), MainActivity.class);
                startActivity(intent);
                getActivity().finish();


                break;



            default:
        }



    }


    @Override
    public void startAnimation() {

//        playHeartbeatAnimation();

        playHeartbeatAnimation.playHeartbeatAnimation(imgView_immediate_experience);

    }

    @Override
    public void stopAnimation() {


    }


}
